package com.editso.haier.dao;

import com.editso.haier.entity.Topic;

import javax.transaction.Transactional;
import java.util.Optional;


public interface TopicDao extends Dao<Topic, Integer>{


    Iterable<Topic> findAllByParentNull();

    boolean existsTopicByName(String name);

    Optional<Topic> findByName(String name);
}
